package rhc.discribute.signal.signalTouch;

import java.util.Collection;
import java.util.Map;

import rhc.discribute.node.host.Host;
import rhc.discribute.signal.SignalTouch;
import rhc.discribute.signal.signalInterface.SendMsgFailSignal;

public class SendMsgFailSignalTouch implements SignalTouch<SendMsgFailSignal> {

	@Override
	public void touchSignal(Collection<SendMsgFailSignal> signalInterfaces, Map<String, Object> signalObject) {
		if(null == signalObject){
			return;
		}
		
		Host toHost=(Host) signalObject.get(SendMsgFailSignal.TO_HOST);
		String message=(String) signalObject.get(SendMsgFailSignal.MESSAGE);
		
		for(SendMsgFailSignal smf:signalInterfaces){
			smf.process(toHost, message);
		}
	}

}
